var f = setInterval(show,1000);
var id = $('.wembj').data('id');
var title = $('.wembj').data('title');
function show(){
	$.ajax({
		url:"/orders/wxreturn",
		data: {id: id},
		type:'post',
		success:function(obj){
			if(obj.status == true){
                clearInterval(f);
				alert(title+'支付成功');
				location.href = "/course/"+obj.id+".html";
			}
		},
		error:function(obj){
			
		}
	});
}